from api import creat_app
from api.cms import user
from routers import register_router
import uvicorn

app = creat_app()


# 也可以在这里定义 prefix 和 tags
# app.include_router(user,prefix="/api", tags=["user"])

# 注册user 对象
# app.include_router(user)


# 调用注册路由方法
# register_router(app)

if __name__ == "__main__":

    # uvicorn.run(app='main:app', host="0.0.0.0", log_config='./uvicorn_config.json', port=8000)
    uvicorn.run(app='main:app', host="0.0.0.0",  port=8000)